﻿using RMS.API.Web.Models.Temp;
using RMS.BLL;
using RMS.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace RMS.API.Web.Areas.RMS.Controllers
{
    /// <summary>
    /// 菜单接口
    /// </summary>
    [RoutePrefix("api/RMS/Menu")]
    public class MenuController : ApiController
    {

        MenuBll bll = new MenuBll();
        /// <summary>
        /// 根据管理员Id和项目Id获取菜单列表
        /// </summary>
        /// <param name="model">查询条件</param>
        /// <returns></returns>
        [HttpPost]
        [Route("GetMenuByManagerId")]
        public CommonOutPutVm GetMenuByManagerId(GetMenuByManagerId_TempModel model)
        {
            var result = new CommonOutPutVm();
            result = bll.GetMenuByManagerId(model.UserId, model.ProgramId);
            return result;
        }

    }
}
